<%@ page import="com.xinjie.www.service.user.UserServiceImpl" %>
<%@ page import="com.xinjie.www.po.User" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户列表查看</title>
    <style type="text/css">
        table{
            width: 500px;
            border: 1px solid red;
            border-collapse: collapse;
        }
        th , td{
            border: 1px solid red;
        }
    </style>
</head>
<body>
<%
    UserServiceImpl userService = new UserServiceImpl();
    List<User> list = userService.getAllUser();
%>
<div align="center">
    <h4>用户信息如下</h4>
    <table>
        <tr>
            <th>用户id</th>
            <th>用户名</th>
            <th>性别</th>
        </tr>
        <%for (User user : list) {%>
        <tr>
            <%= "<td>"+user.getUserId()+"</td>"%>
            <%= "<td>"+user.getUserName()+"</td>"%>
            <%="<td>"+user.getSex()+"</td>"%>
        </tr>
        <%}%>
    </table>
    <a href="ManagerFrame.jsp">返回</a>
</div>
</body>
</html>
